package com.taoge.p4.common.errorCode;

/**
 * 安全相关错误码
 */
public enum SecurityErrorCode implements BaseErrorCode {
    USERNAME_EXISTS_ERROR(10001, "[%s]用户名[%s]已注册"),
    PASSWORD_ERROR(10002, "用户名或密码错误"),
    ;
    private final int code;
    private final String msg;

    SecurityErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

}
